home *** CD-ROM | disk | FTP | other *** search
- case $CONFIG in
- '') . config.sh ;;
- esac
- outputfile=mmdf.cf
- rm -f $outputfile.$$
- echo "Creating $outputfile (with variable substitutions)"
- if cat >$outputfile.$$ <<!GROK!THIS!
- # RCSid[] = "@(#)$Header: mmdf.SH,v 3.1 87/01/06 08:16:02 pb Rel $"
- #
- ##################################################
- ##################################################
- ##############
- ############## configure for mmdf tables + domains
- ##############
- ##################################################
- ##################################################
-
- # directory with nrs file in
- directory $datadir
-
- # enable tracing
- verbose 1
-
- # output format
- output short mmdf
-
- # only want connections on JANET in the MAIL-NIFTP context
- context MAIL janet
-
- # Want the domain gateway tables
- domains
-
- # filter this file through macro expander
- comment hdr.file
-
- # now the domains & files - order is critical.
- # the file the short dmn the long dmn
- # AUTOMATIC local tailoring
- # end of local tailoring
- # The academic comunity domain
- filedmn ac.dmn uk.ac.
- # the comercial doamin
- filedmn co.dmn uk.co.
- # the MOD doamin
- filedmn mod.dmn uk.mod.
- # DESY (Hamburg Germany)
- filedmn desy.dmn desy.
- # CERN sites
- filedmn cern.dmn cern.
-
- # the gateway info .... with pseudo-match
- filedmn top.dmn -top.dmn-
-
- # the rest -- should be empty except for ALVEY
- # (the pain in everyone's side)
- filedmn misc.dmn
-
- # Two channels pss & janet - pss will cost you ...
- filechan pss-chan pss
- filechan janet-chan janet
- !GROK!THIS!
- then
- : OK
- else
- echo " " Failed to create $outputfile.$$
- exit 1
- fi
- if [ -r tailor ]
- then ed - $outputfile.$$ << EOF
- /AUTOMATIC local tailoring/r tailor
- w
- EOF
- fi
- if cmp $outputfile $outputfile.$$ > /dev/null 2>& 1
- then
- rm -f $outputfile.$$
- echo " " $outputfile not affected
- elif mv $outputfile.$$ $outputfile
- then
- echo " " $outputfile updated
- else
- echo "+++ " $outputfile left in $outputfile.$$
- fi
-